package com.version.manager.controller.shop;

import com.version.manager.controller.BaseController;
import com.version.manager.entity.Shop.shopGoodsStore;
import com.version.manager.model.Msg;
import com.version.manager.service.Shop.shopGoodsStoreService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.spring.annotation.MapperScan;

@RestController
@Api(value = "shopGoodsColorController")
@RequestMapping("/api/shop/shopGoodsStore")
public class shopGoodsStoreController extends BaseController<shopGoodsStoreService, shopGoodsStore> {
    @Autowired
    private shopGoodsStoreService service;
    @GetMapping("getStore")
    @ResponseBody
    public Msg getStore(String goodsId){
        return service.getStoreData(goodsId);
    }
}
